#pragma once
#include "UIControl.h"
#include "ximage.h"


class CUICheckBox :	public CUIControl
{
public:
	CUICheckBox(void);
	~CUICheckBox(void);
	virtual void Render(CDC *pDC);
	virtual BOOL OnLButtonDown(UINT nFlags, CPoint point);

public:
	void Create(CString szImageFile, CRect rcBound, CUIControl *pParent);
	int GetCheck() {return m_bCheck;};
	void SetCheck(BOOL bCheck) {m_bCheck = bCheck;};
	void SetImage(const char *szImageFile);
	CxImage& GetImage() {return m_imgCheckBox;};
	void SetText(CString sText) {m_sText = sText;};
	void SetTextColor(COLORREF crText) {m_crText = crText;};
protected:
	BOOL m_bCheck;
	CxImage m_imgCheckBox;
	CString m_sText;
	COLORREF m_crText;
};
